package com.beichuan_travel.interfaces.transform;

import com.beichuan_travel.model.dto.FoodDTO;
import com.beichuan_travel.model.po.FoodPO;
import com.beichuan_travel.model.vo.FoodVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface FoodCovertBasic {

    FoodCovertBasic INSTANCE = Mappers.getMapper(FoodCovertBasic.class);

    FoodVO POtoCovertVO(FoodPO foodPO);

    FoodPO DTOtoCovertPO(FoodDTO foodDTO);

    List<FoodVO> POtoCoertVO(List<FoodPO> list);

    List<FoodPO> DTOtoCovertPO(List<FoodDTO> list);
}
